package com.jishaokang.service;

import com.jishaokang.base.Result;
import com.jishaokang.model.dto.Chapter;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * Created by NANA_Final on 2019/6/21.
 */
public interface ChapterService {
    Result selectChapterByChapterId(Chapter chapter);

    Result addChapter(Chapter chapter);

    Result updateChapter(Chapter chapter);

    Result deleteChapter(Chapter chapter);

    Result selectChapterByState(Chapter chapter);

    Result selectChapterByCourseId(Chapter chapter);

    Result selectRealChapterByChapterId(Chapter chapter);

    Result updateChapterVideo(String token, int chapterId,MultipartFile chapterVideoFile, HttpServletRequest request) throws IOException;

    Result updateChapterStateAllow(Chapter chapter,HttpServletRequest request);

    Result updateChapterStateRefuse(Chapter chapter);

    Result selectRealChapterByCourseId(Chapter chapter);
}
